﻿using System.Windows;

namespace Pfz.WpfControls
{
	/// <summary>
	/// Argument used by ModalPresented.ElementClosed event.
	/// </summary>
	public sealed class ElementClosedEventArgs:
		RoutedEventArgs
	{
		internal ElementClosedEventArgs(RoutedEvent routedEvent):
			base(routedEvent)
		{
		}

		/// <summary>
		/// Gets the Element being closed.
		/// </summary>
		public UIElement Element { get; internal set; }

		/// <summary>
		/// Gets the result used when closing the element.
		/// </summary>
		public object Result { get; internal set; }
	}
}
